package cn.iocoder.yudao.module.ym.controller.admin.ticket.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 工单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TicketPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "超时时长", example = "2")
    private Integer timeoutHour;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "公司id", example = "9581")
    private Long deptId;

    @Schema(description = "第三主键", example = "23403")
    private Integer thirdId;

    @Schema(description = "工单编号	")
    private String ticketNumber;

    @Schema(description = "工单类型", example = "2")
    private Integer ticketType;

    @Schema(description = "优先级")
    private Integer ticketLevel;

    @Schema(description = "工单状态", example = "2")
    private Integer ticketStatus;

    @Schema(description = "区域", example = "10318")
    private Long areaId;
    private Collection<Long> areaIds;

    @Schema(description = "电站", example = "10190")
    private Long siteId;
    private Collection<Long> siteIds;

    @Schema(description = "指派人", example = "5412")
    private Long operatorId;
    private List<Long> operatorIdList;

    @Schema(description = "接单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "完单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "巡检检查项")
    private String inspectionItem;

    @Schema(description = "处理情况")
    private String processing;

    @Schema(description = "故障描述")
    private String faultDesc;

    @Schema(description = "故障图片")
    private String faultImage;

    @Schema(description = "充电桩ID")
    private String chargingPileId;

    @Schema(description = "工单描述")
    private String ticketDesc;

    private String creator;

}